package edu.pku.sei.transformation.editor.controller.editparts.node;

import org.eclipse.draw2d.IFigure;

import edu.pku.sei.modeler.model.structure.MetaShapeElement;
import edu.pku.sei.transformation.editor.model.Transformation;
import edu.pku.sei.transformation.editor.views.figures.TransformationFigure;

public class CompositeTransformationEditpart extends TransformationEditpart {

	public CompositeTransformationEditpart(MetaShapeElement model) {
		super(model);
		// TODO Auto-generated constructor stub
	}
	
	@Override
	protected IFigure createFigure() {
		TransformationFigure figure =  new TransformationFigure();
		Transformation trans = (Transformation) getNode().getModelElement();
		figure.setName(trans.getName());
		figure.setTag("<<Composite>>");
		return figure;
	}

}
